from datetime import datetime
from django import template

register = template.Library()


# 自定义标签

@register.simple_tag
def current_time():
    return datetime.now()
